package com.hznu.ez4life.modules.entity;

import com.baomidou.mybatisplus.annotations.TableField;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author DragonDoor
 * @since 2019-07-25
 */
public class Item implements Serializable {

    private static final long serialVersionUID = 1L;

    private Integer id;
    private String name;
    private Double weight;
    private String shelfnum;
    private String expnum;
    private String recname;
    private String phone;
    private String imgsrc;
    private String des;
    private Integer userId;
    private Integer stationId;
    private Integer itemtypeId;

    @TableField(exist = false)
    private Station station;
    @TableField(exist = false)
    private Itemtype itemtype;

    public Station getStation() {
        return station;
    }

    public void setStation(Station station) {
        this.station = station;
    }

    public Itemtype getItemtype() {
        return itemtype;
    }

    public void setItemtype(Itemtype itemtype) {
        this.itemtype = itemtype;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Double getWeight() {
        return weight;
    }

    public void setWeight(Double weight) {
        this.weight = weight;
    }

    public String getShelfnum() {
        return shelfnum;
    }

    public void setShelfnum(String shelfnum) {
        this.shelfnum = shelfnum;
    }

    public String getExpnum() {
        return expnum;
    }

    public void setExpnum(String expnum) {
        this.expnum = expnum;
    }

    public String getRecname() {
        return recname;
    }

    public void setRecname(String recname) {
        this.recname = recname;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getImgsrc() {
        return imgsrc;
    }

    public void setImgsrc(String imgsrc) {
        this.imgsrc = imgsrc;
    }

    public String getDes() {
        return des;
    }

    public void setDes(String des) {
        this.des = des;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getStationId() {
        return stationId;
    }

    public void setStationId(Integer stationId) {
        this.stationId = stationId;
    }

    public Integer getItemtypeId() {
        return itemtypeId;
    }

    public void setItemtypeId(Integer itemtypeId) {
        this.itemtypeId = itemtypeId;
    }

    @Override
    public String toString() {
        return "Item{" +
        ", id=" + id +
        ", name=" + name +
        ", weight=" + weight +
        ", shelfnum=" + shelfnum +
        ", expnum=" + expnum +
        ", recname=" + recname +
        ", phone=" + phone +
        ", imgsrc=" + imgsrc +
        ", des=" + des +
        ", userId=" + userId +
        ", stationId=" + stationId +
        ", itemtypeId=" + itemtypeId +
        "}";
    }
}
